import com.sun.jna.Library;
import com.sun.jna.Native;

public class HelloJna {
  public interface CLibrary extends Library {
    // cp lib/libhello.dylib src/main/resources/
    CLibrary clib = Native.load("hello", CLibrary.class);

    void sayHello(String name);
  }

  public static void main(String[] args) {
    CLibrary.clib.sayHello("JNA");
  }
}